package util;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class Constantes {
    public static final String DATA = "dd/MM/yyyy";
    public static final String DATA_HORA = "yyyy-MM-dd HH:mm:ss";

    public static int larguraTelas = 780;
    public static int alturaTelas = 540;

    public static String imagePath; //= "images/";
    public static String endereco;
    public static String senhaMySQL;
    public static String loginMySQL;
    public static String caminhosql;
    public static String tipoMoeda = "R$ ,";
    
    static{
	Properties properties = new Properties();
	try {
	    properties.load(new FileInputStream("processamento.properties"));
	    larguraTelas = Integer.parseInt(properties.getProperty("larguraTelas"));
	    alturaTelas = Integer.parseInt(properties.getProperty("alturaTelas"));
	    imagePath = properties.getProperty("imagePath");
	    endereco = properties.getProperty("endereco");
	    senhaMySQL = properties.getProperty("senhaMySQL");
	    loginMySQL = properties.getProperty("loginMySQL");
	    caminhosql = properties.getProperty("caminhosql");
	} catch (FileNotFoundException e) {
	    e.printStackTrace();
	} catch (IOException e) {
	    e.printStackTrace();
	}
    }
}